<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Demo登陆页</title>
</head>
<body>
    <h2>Demo登陆页</h2>
    <h3>图形验证码登录</h3>
    <form action="/authentication/from" method="post">
        <table>
            <tr>
                <td>用户名：</td>
                <td><input type="text" name="username"/></td>
            </tr>
            <tr>
                <td>密码：</td>
                <td><input type="password" name="password"/></td>
            </tr>
            <tr>
                <td>图形验证码：</td>
                <td>
                    <input type="password" name="imageCode"/>
                    <img src="/code/image?width=200">
                </td>
            </tr>
            <tr>
                <!--remember-me :是固定的-->
                <td colspan="2"><input type="checkbox" name="remember-me" value="true"/>记住我</td>
            </tr>
            <tr>
                <td colspan="2"><button type="submit">登录</button></td>
            </tr>
        </table>
    </form>

    <h3>短信验证码登录</h3>
    <form action="/authentication/mobile" method="post">
        <table>
            <tr>
                <td>手机号：</td>
                <td><input type="text" name="mobile" value="13212345678"/></td>
            </tr>
            <tr>
                <td>短信验证码：</td>
                <td><input type="text" name="smsCode"/></td>
                <a href="/code/code?mobile=13212345678">发送短信验证码</a>
            </tr>
            <tr>
                <td colspan="2"><button type="submit">登录</button></td>
            </tr>
        </table>
    </form>
</body>
</html>